package com.ruoyi.bussiness.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.bussiness.domain.SysBusinessCheckList;
import com.ruoyi.bussiness.domain.SysBusinessDynamic;
import org.apache.ibatis.annotations.Param;

/**
 * 业务-动态Mapper接口
 *
 * @author ruoyi
 * @date 2023-12-12
 */
public interface SysBusinessDynamicMapper
{
    /**
     * 查询业务-动态
     *
     * @param dynamicId 业务-动态主键
     * @return 业务-动态
     */
    public SysBusinessDynamic selectSysBusinessDynamicByDynamicId(Long dynamicId);

    /**
     * 查询业务-动态列表
     *
     * @param sysBusinessDynamic 业务-动态
     * @return 业务-动态集合
     */
    public List<SysBusinessDynamic> selectSysBusinessDynamicList(SysBusinessDynamic sysBusinessDynamic);

    /**
     * 新增业务-动态
     *
     * @param sysBusinessDynamic 业务-动态
     * @return 结果
     */
    public int insertSysBusinessDynamic(SysBusinessDynamic sysBusinessDynamic);

    /**
     * 修改业务-动态
     *
     * @param sysBusinessDynamic 业务-动态
     * @return 结果
     */
    public int updateSysBusinessDynamic(SysBusinessDynamic sysBusinessDynamic);

    /**
     * 删除业务-动态
     *
     * @param dynamicId 业务-动态主键
     * @return 结果
     */
    public int deleteSysBusinessDynamicByDynamicId(Long dynamicId);

    /**
     * 批量删除业务-动态
     *
     * @param dynamicIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBusinessDynamicByDynamicIds(Long[] dynamicIds);

    public int BackSysBusinessDynamic(SysBusinessDynamic sysBusinessDynamic);

    int updateOrderNum(@Param("dynamicId") Long dynamicId);

    SysBusinessDynamic getLastList(@Param(value = "orderNum") Integer orderNum);

    SysBusinessDynamic getNextList(@Param(value = "orderNum") Integer orderNum);


    List<Map<String, Object>> getSearchList(@Param("searchStr") String searchStr);
}
